package com.vipheyue.fastlib.utils;

import android.widget.TextView;

import static android.text.TextUtils.isEmpty;

/**
 * Created by heyue on 16/9/5.
 */

public class CheckTextUtil {
    public static <T extends TextView> boolean hasEmpty(T... mViews) {
        for (T mView : mViews) {
            if (isEmpty(mView.getText().toString().trim())) {
                return true;
            }
        }
        return false;
    }

    public static boolean hasEmpty(CharSequence... str) {
        for (CharSequence charSequence : str) {
            if (isEmpty(charSequence)) {
                return true;
            }
        }
        return false;
    }
}
